import React from "react";

import {
    HashRouter,
    Switch,
    Route
} from "react-router-dom"
import Cart from "../com/Cart"
import StoreList from "../com/StoreList"

class Router extends React.Component{
        render(){
            return(
                <HashRouter>
                    <Switch>
                        <Route path="/Cart" component={Cart}></Route>
                        <Route path="/" component={StoreList}></Route>
                    </Switch>
                </HashRouter>
            )
        }
}


export default Router